package com.zzyy.study.service;

import com.zzyy.study.mq.service.IBaseService;
import com.zzyy.study.po.AccountPO;

import java.math.BigDecimal;

public interface IAccountService extends IBaseService<AccountPO>
{
    /**
     * 转账
     *
     * @param fromAccountId 付款人账户id
     * @param toAccountId   收款人账号id
     * @param transferPrice 转账金额
     */
    void transfer(String fromAccountId, String toAccountId, BigDecimal transferPrice);

    /**
     * 增加账户余额
     *
     * @param accountId
     * @param price
     * @return
     */
    void balanceAdd(String accountId, BigDecimal price);
}
